home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / art3dPaintProperties.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  18.4 KB  |  715 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  June 2000
  22. //  Author:         alipka 
  23. //
  24. //  Description:
  25. //      Option tool property window for 3d Paint tool.
  26. //
  27. //
  28. //  Procedure Name:
  29. //      art3dPaintProperties 
  30. //
  31. //  Description:
  32. //      Set up the the option values.
  33. //
  34. //  Input Arguments:
  35. //
  36. //  Return Value:
  37. //      None.
  38. //
  39.  
  40. proc art3dCreateBrushFrame(
  41.     string    $parent
  42. )
  43. //
  44. //    Description:
  45. //        Deal with stamp properties: radius, opacity, profiles.
  46. //
  47. {
  48.     setUITemplate -pushTemplate OptionsTemplate;
  49.     setParent $parent;
  50.  
  51.     columnLayout;
  52.         floatSliderGrp  -field true -label "Radius (U)" 
  53.             -ann "Brush radius."
  54.             -precision 4 
  55.             -min 0.0 -max 50.0 
  56.             -step 0.05  
  57.         art3dUppRadiusSlider;
  58.  
  59.         floatSliderGrp -field true -label "Radius (L)"  
  60.             -ann "Lower brush radius limit."
  61.             -precision 4 
  62.             -min 0.0 -max 50.0 
  63.             -step 0.05  
  64.         art3dLowRadiusSlider;
  65.  
  66.         separator -h 10 -style "none";
  67.  
  68.         rowColumnLayout -nc 7 
  69.                 -cw 1 100 -cw 2 35 -cw 3 35 
  70.                 -cw 4 35  -cw 5 35 -cw 6 35 
  71.                 -cs 6 10  -cw 7 60;
  72.  
  73.             text -al "right" 
  74.                  -l "Artisan: "
  75.                  -ann "Artisan stamp profiles."
  76.                 art3dProfileText;
  77.  
  78.             symbolCheckBox -w 33 -h 36 -i "circleGaus.xpm"  
  79.                 -ann "Gaussian brush profile." art3dGaussianChBx;
  80.             symbolCheckBox -w 33 -h 36 -i "circlePoly.xpm" 
  81.                 -ann "Soft brush profile." art3dPolyBrushChBx;
  82.             symbolCheckBox -w 33 -h 36 -i "circleSolid.xpm" 
  83.                 -ann "Solid brush profile." art3dSolidChBx;
  84.             symbolCheckBox -w 33 -h 36 -i "rect.xpm"
  85.                 -ann "Square brush profile." art3dRectBrushChBx;
  86.             symbolCheckBox -w 33 -h 36 -i "file.xpm"
  87.                 -ann "Last image file - shape brush profile. " art3dFileBrushChBx;
  88.             button -l "Browse" 
  89.                 -ann "File browser for shape profiles." art3dShapeButton;
  90.         setParent ..;
  91.  
  92.         separator -h 5 -style "none";
  93.  
  94.         rowColumnLayout -nc 4 
  95.                 -cw 1 100 -cw 2 35 
  96.                 -cs 3 35  -cw 3 35 -cw 4 35; 
  97.  
  98.             text -al "right" 
  99.                  -l "Paint Effects:"
  100.                  -ann "Paint Effects brushes."
  101.                 art3dProfileText;
  102.  
  103.             symbolCheckBox -w 33 -h 36 -i "lastPFXBrush.xpm"  
  104.                 -ann "Last brush."  
  105.                 art3dLastPFXBrush;
  106.             symbolCheckBox -w 33 -h 36 -i "templateBrushSettings.xpm"  
  107.                 -ann "Edit template brush." 
  108.                 art3dPFXBrushEditor;
  109.             symbolCheckBox -w 33 -h 36 -i "paintEffectsBrushesLarge.xpm" 
  110.                 -ann "Get brush." 
  111.                 art3dVisorEditor;
  112.         setParent ..;
  113.  
  114.         separator -h 10 -style "none";
  115.  
  116.         checkBoxGrp
  117.             -l "" -l1 "Rotate To Stroke"
  118.             -ann "Brush alignment: path alignment or up vector."
  119.         art3dPaintBrushAlignmentChkBox;
  120.  
  121.         separator -h 5 -style "none";
  122.     setParent ..;
  123.  
  124.     setUITemplate -popTemplate;
  125. }
  126.  
  127. proc art3dCreateColorFrame( 
  128.     string     $parent
  129. )
  130. //
  131. //    Description:
  132. //        Create a 3d paint color options UI.
  133. //
  134. {
  135.     setUITemplate -pushTemplate OptionsTemplate;
  136.     setParent $parent;
  137.  
  138.     columnLayout;
  139.         // Paint Color.
  140.         colorSliderGrp -label "Color Value" 
  141.             -ann "Paint color"
  142.         art3dColorSlider;
  143.  
  144.         floatSliderGrp -field true -l "Opacity " 
  145.             -ann "Brush opacity."
  146.             -precision 4 
  147.             -min 0.0 -max 1.0 
  148.             -step 0.05 
  149.         art3dOpacitySlider;
  150.    
  151.         separator -h 15 -style "none";
  152.     setParent ..;
  153.  
  154.     setUITemplate -popTemplate;
  155. }
  156.  
  157.  
  158. proc art3dCreateFloodFrame( 
  159.     string     $parent
  160. )
  161. //
  162. //    Description:
  163. //        Create a 3d paint Flood options UI.
  164. //
  165. {
  166.     setUITemplate -pushTemplate OptionsTemplate;
  167.     setParent $parent;
  168.  
  169.     columnLayout;
  170.         // Flood Color.
  171.         colorSliderGrp -label "Color " 
  172.             -ann "Flood color"
  173.         art3dFloodColorSlider;
  174.  
  175.         floatSliderGrp -field true -l "Opacity " 
  176.             -ann "Flood opacity."
  177.             -precision 4 
  178.             -min 0.0 -max 1.0 
  179.             -step 0.05 
  180.         art3dFloodOpacitySlider;
  181.    
  182.         separator -h 15 -style "none";
  183.  
  184.         // Flood Buttons.
  185.         rowColumnLayout -nc 2 
  186.                         -cs 1 45 
  187.                         -cw 1 120 -cs 2 40 
  188.                         -cw 2 120;
  189.  
  190.             button -l "Flood Paint " 
  191.                 -width 120  
  192.                 -ann "Flood paint" 
  193.             art3dFloodPaintButton; // Flood Paint
  194.  
  195.             button -l "Flood Erase " 
  196.                 -width 120  
  197.                 -ann "Flood erase" 
  198.             art3dFloodEraseButton; // Flood Erase
  199.         setParent ..;
  200.         separator -h 5 -style "none";
  201.         
  202.         // Flood Option.
  203.         radioButtonGrp -nrb 2 -sl 1
  204.                 -l  "Flood"
  205.                 -l1 "All" -l2 "Selected"
  206.                 -ann "Flooding option."    
  207.         art3dFloodOption;
  208.     setParent ..;
  209.  
  210.     setUITemplate -popTemplate;
  211. }
  212.  
  213.  
  214. proc art3dCreateOperationFrame( 
  215.     string     $parent
  216. )
  217. //
  218. //    Description:
  219. //        Create a 3d paint operation options UI.
  220. //
  221. {
  222.     setUITemplate -pushTemplate OptionsTemplate;
  223.     setParent $parent;
  224.     
  225.     columnLayout;
  226.         // Paint Operation.
  227.         radioButtonGrp -nrb 3 
  228.                 -l  "Artisan"
  229.                 -l1 "Paint" -l2 "Erase" -l3 "Clone" 
  230.                 -ann "Attribute Paint operation."    
  231.         art3dPaintOperation0;
  232.  
  233.         radioButtonGrp -shareCollection art3dPaintOperation0 
  234.                 -nrb 3
  235.                 -l "Paint Effects" 
  236.                 -l1 "Paint" -l2 "Smear" -l3 "Blur" 
  237.         art3dPaintOperation1;
  238.         
  239.          rowColumnLayout -nc 1 -cs 1 135 -cw 1 134;
  240.          button -l "Set Erase Image" -c ("art3dPaintCtx -e -updateEraseTex `currentCtx`") 
  241.                 -ann "Set/Update Erase image for restoring" art3dEraseUpdateButton;
  242.          setParent ..;
  243.  
  244.         separator -h 5 -style "none";
  245.  
  246.         rowColumnLayout -nc 1 -cs 1 135  -cw 1 134;
  247.             button -l "Reset Brushes" 
  248.                     -ann "Reset brushes and profiles to defaults"
  249.                 art3dResetBrushesButton;
  250.         setParent ..;
  251.  
  252.         separator -h 5 -style "none";
  253.  
  254.         // Alpha blend mode.
  255.         optionMenuGrp -l "Blend Mode " 
  256.             -ann "Blend Mode" art3dBlendModeOptionMenu;
  257.             menuItem -l "Default"    artBlendModeMenuItem0;
  258.             menuItem -l "Lighten"    artBlendModeMenuItem1;
  259.             menuItem -l "Darken"    artBlendModeMenuItem2;
  260.             menuItem -l "Multiply"    artBlendModeMenuItem3;
  261.             menuItem -l "Screen"    artBlendModeMenuItem4;
  262.             menuItem -l "Overlay"    artBlendModeMenuItem5;
  263.  
  264.         separator -h 10 -style "none";
  265.  
  266.         radioButtonGrp -nrb 2
  267.             -l "Clone Brush Mode" 
  268.             -l1 "Dynamic" -l2 "Static"
  269.             -ann "Clone brush mode."
  270.         art3dCloneMode;
  271.  
  272.         rowColumnLayout -nc 1 -cs 1 135  -cw 1 134;
  273.             button -l "Set Clone Source" 
  274.                 -ann "Switch to clone source selection mode."
  275.             art3dCloneSourceSelectionButton;
  276.         setParent ..;
  277.  
  278.         separator -h 5 -style "none";
  279.  
  280.         intSliderGrp -field true -label "Blur Intensity"
  281.             -ann "Control the intensity of the blur."
  282.             -minValue 1 -maxValue 20 
  283.             -value 8
  284.         art3dBlurIntSlider;
  285.  
  286.         separator -h 5 -style "none";
  287.  
  288.     setParent ..;
  289.  
  290.     setUITemplate -popTemplate;
  291. }
  292.  
  293.  
  294. proc art3dCreateFileTextureFrame( 
  295.     string     $parent
  296. )
  297. //
  298. //    Description:
  299. //        Create a 3d paint file texture options UI.
  300. //
  301. {
  302.     setUITemplate -pushTemplate OptionsTemplate;
  303.     setParent $parent;
  304.  
  305.     columnLayout;
  306.         // Texture Attribute to paint.
  307.         optionMenuGrp -l "Attribute to Paint " 
  308.                 -ann "Shader attribute to paint." 
  309.                 art3dPaintAttrOptionMenu;
  310.             menuItem -l "Color"             art3dPaintAttrMenuItem0;
  311.             menuItem -l "Transparency"      art3dPaintAttrMenuItem1;
  312.             menuItem -l "Incandescence"     art3dPaintAttrMenuItem2;
  313.             menuItem -l "BumpMap"           art3dPaintAttrMenuItem3;
  314.             menuItem -l "SpecularColor"     art3dPaintAttrMenuItem4;
  315.             menuItem -l "Reflectivity"      art3dPaintAttrMenuItem5;
  316.             menuItem -l "Ambient"           art3dPaintAttrMenuItem6;
  317.             menuItem -l "Diffuse"           art3dPaintAttrMenuItem7;
  318.             menuItem -l "Translucence"      art3dPaintAttrMenuItem8;
  319.             menuItem -l "ReflectedColor"    art3dPaintAttrMenuItem9;
  320.             menuItem -l "Displacement"        art3dPaintAttrMenuItem10;
  321.  
  322.         separator -h 5 -style "none";
  323.  
  324.         // File Format.
  325.         if(`about -mac`){
  326.             optionMenuGrp -l "Image Format" art3dPaintFileFormatOptionMenu;
  327.                 menuItem -l "Tiff (tif)"                 art3dPaintFileFormatMenuItem0;
  328.                 menuItem -l "SGI (sgi)"                   art3dPaintFileFormatMenuItem1;
  329.                 menuItem -l "Maya IFF (iff)"             art3dPaintFileFormatMenuItem2;
  330.                 menuItem -l "JPEG (jpeg)"                  art3dPaintFileFormatMenuItem3;
  331.                 menuItem -l "Targa (tga)"                   art3dPaintFileFormatMenuItem4;
  332.                 menuItem -l "WindowsBitmap (bmp)"         art3dPaintFileFormatMenuItem5;
  333.                 menuItem -l "QuickTime Image (qtif)"     art3dPaintFileFormatMenuItem6;
  334.                 menuItem -l "QuickDraw (pict)"               art3dPaintFileFormatMenuItem7;
  335.                 menuItem -l "Photoshop (ps)"               art3dPaintFileFormatMenuItem8;
  336.                 menuItem -l "PNG (png)"                   art3dPaintFileFormatMenuItem9;
  337.                 menuItem -l "MacPaint (pntg)"               art3dPaintFileFormatMenuItem10;
  338.         }else{
  339.             optionMenuGrp -l "Image Format" art3dPaintFileFormatOptionMenu;
  340.                 menuItem -l "Alias PIX (als)" art3dPaintFileFormatMenuItem0;
  341.                 menuItem -l "EPS (eps)"       art3dPaintFileFormatMenuItem3;
  342.                 menuItem -l "GIF (gif)"       art3dPaintFileFormatMenuItem4;
  343.                 menuItem -l "JPEG (jpeg)"       art3dPaintFileFormatMenuItem5;
  344.                 menuItem -l "Maya IFF (iff)"  art3dPaintFileFormatMenuItem6;
  345.                 menuItem -l "RLA (rla)"       art3dPaintFileFormatMenuItem9;
  346.                 menuItem -l "SGI (sgi)"       art3dPaintFileFormatMenuItem10;
  347.                 menuItem -l "SoftImage (pic)" art3dPaintFileFormatMenuItem12;
  348.                 menuItem -l "Targa (tga)"       art3dPaintFileFormatMenuItem13;
  349.                 menuItem -l "Tiff (tif)"       art3dPaintFileFormatMenuItem14;
  350.         }
  351.         
  352.  
  353.         separator -h 5 -style "none";
  354.  
  355.         // Assign Textures button.
  356.         rowColumnLayout -nc 1 -cs 1 135  -cw 1 134;
  357.             button  -l "Assign/Edit Textures"
  358.                 -ann "Assign/Edit file textures for a selected shader attribute to paint."
  359.                 -c ("art3dPaintAssignFileTexture( \"" + $parent + "\")")
  360.             art3dAssignTexturesButton;
  361.  
  362.             separator -h 5 -style "none";
  363.  
  364.             button  -l "Save Textures"
  365.                 -ann "Save textures to the disk."
  366.                 -c ("art3dPaintSaveFileTextures( \"" + $parent + "\")")
  367.             art3dSaveTexturesButton;
  368.  
  369.             button  -l "Reload File Textures"
  370.                 -ann "Reload textures from the disk."
  371.             art3dReloadTexturesButton;
  372.         setParent ..;
  373.  
  374.         separator -h 5 -style "none";
  375.  
  376.         // Update on each stroke.
  377.         checkBoxGrp -ncb 1 
  378.             -l "" -l1 "Update on Stroke"
  379.             -ann "Update textures on disk on each stroke."
  380.         art3dSaveOnStrokeChkBox;
  381.  
  382.         // Save texture on each stroke.
  383.         checkBoxGrp -ncb 1 
  384.             -l "" -l1 "Save Texture on Stroke"
  385.             -ann "Save textures on disk on each stroke."
  386.         art3dSaveTextureOnStrokeChkBox;
  387.  
  388.         // Fill in the background color.
  389.         checkBoxGrp -ncb 1 
  390.             -l "" -l1 "Extend Seam Color"
  391.             -ann "Average the color background pixels." 
  392.         art3dExtendFillColorChkBox;
  393.  
  394.     setParent ..;
  395.  
  396.     setUITemplate -popTemplate;
  397. }
  398.     
  399.  
  400. global proc art3dPressureMappings()
  401. {
  402.     menuItem -l "off"         aOff;
  403.     menuItem -l "scale"     aScale;
  404.     menuItem -l "width"     aWidth;
  405.     menuItem -l "softness"    aSoftness;
  406.     menuItem -l "color"     aColor;
  407.     menuItem -l "transparency"    aTransparency;
  408.     menuItem -l "tube width"     aTubeWidth;
  409.     menuItem -l "tube length"    aTubeLength;
  410.     menuItem -l "incandescence"    aIncandescence;
  411.     menuItem -l "glow spread"    aGlowSpread;
  412.     menuItem -l "tubes per step" aTubesPerStep;
  413.     menuItem -l "elevation"     aElevation;
  414.     menuItem -l "azimuth"         aAzimuth;
  415.     menuItem -l "path follow"     aPathFollow;
  416.     menuItem -l "path attract"     aPathAttract;
  417.     menuItem -l "random"         aRandom;
  418.     menuItem -l "wiggle"         aWiggle;
  419.     menuItem -l "curl"             aCurl;
  420.     menuItem -l "noise"         aNoise;
  421.     menuItem -l "turbulence" aTurbulence;
  422.     menuItem -l "num twigs"  aNumTwigs;
  423.     menuItem -l "num leaves" aNumLeaves;
  424.     menuItem -l "num petals" aNumPetals;
  425.     menuItem -l "surface offset" aSurfaceOffset;
  426. }
  427.  
  428.  
  429. proc art3dCreateStrokeFrame( 
  430.     string     $parent 
  431. )
  432. //
  433. //    Description:
  434. //        Create a 3d Paint Stroke UI.
  435. //
  436. {
  437.     setUITemplate -pushTemplate OptionsTemplate;
  438.     setParent $parent;
  439.  
  440.     columnLayout;
  441.         // Projective Paint Mode checkbox.
  442.         checkBoxGrp 
  443.             -l "" -l1 "Screen Projection" 
  444.             -ann "Paint mode."
  445.         art3dProjectionModeChkBox;
  446.  
  447.         // Reflection
  448.         checkBoxGrp -ncb 3 -cw4 130 50 50 50
  449.             -label "Reflection"
  450.             -labelArray3 "X" "Y" "Z" 
  451.             -ann "Reflection Axis"
  452.         art3dReflectionChBox;
  453.  
  454.         separator -h 10 -style "none";
  455.         separator -h 10 -style "single";
  456.         separator -h 10 -style "none";
  457.     
  458.         // Stamp Quality Sliders.
  459.         floatSliderGrp -field true -label "Stamp Spacing" 
  460.             -ann "Spacing between stamps."
  461.             -precision 4 
  462.             -min 0.01 -max 10.0 
  463.             -fieldMinValue 0.001 -fieldMaxValue 100.0
  464.             -v 1.0 
  465.             -step 0.01
  466.         art3dStampSpacingSlider;
  467.  
  468.         floatSliderGrp -field true -l "Stamp Depth" 
  469.             -ann "Depth of a single stamp."
  470.             -precision 4 
  471.             -min 0.01 -max 10.0
  472.             -fieldMinValue 0.001 -fieldMaxValue 100.0
  473.             -v 1.0 
  474.             -step 0.01
  475.         art3dStampDepthSlider;
  476.     setParent ..;
  477.  
  478.     setUITemplate -popTemplate;
  479. }
  480.  
  481.  
  482. proc art3dCreatePressureFrame( 
  483.     string     $parent 
  484. )
  485. //
  486. //    Description:
  487. //        Create a 3d Paint Stylus Pressure UI.
  488. //
  489. {
  490.     setUITemplate -pushTemplate OptionsTemplate;
  491.     setParent $parent;
  492.  
  493.     columnLayout;
  494.         // Tablet Pressure.
  495.         checkBoxGrp 
  496.             -l "" -l1 "Stylus Pressure" 
  497.             -ann "Turn on/off stylus pressure."
  498.         art3dStylusPressureChkBox;
  499.  
  500.         columnLayout art3dArtisanPressure;
  501.             optionMenuGrp -l "Artisan Pressure"  
  502.                     -cal 1 "right" 
  503.                     -ann "Mapping of the tablet pressure."
  504.                 art3dArtisanPressure;
  505.                 menuItem -l "Opacity"    art3dMapOpacity;
  506.                 menuItem -l "Radius"    art3dMapRadius;
  507.                 menuItem -l "Both"        art3dMapBoth;
  508.         setParent ..;
  509.  
  510.         separator -h 10 -style "none";
  511.  
  512.         // Paint Effects Pressure.
  513.         columnLayout art3dPaintEffectPressure;
  514.             text -al "right" 
  515.                  -l "Paint Effects Pressure: "
  516.                 art3dPaintEffectsPressureText;
  517.  
  518.             optionMenuGrp -l "Pressure Map 1"  -cal 1 "right"
  519.                 art3dPressureMap1;
  520.                 art3dPressureMappings();
  521.  
  522.             floatSliderGrp -field true -label "Pressure Min 1" 
  523.                 -precision 4
  524.                 -min 0.0 -max 1.0
  525.                 -fmn -10000.0 -fmx 10000.0
  526.                 -v 0.0
  527.             art3dPressureMin1;
  528.  
  529.             floatSliderGrp -field true -label "Pressure Max 1" 
  530.                 -precision 4
  531.                 -min 0.0 -max 1.0
  532.                 -fmn -10000.0 -fmx 10000.0
  533.                 -v 1.0
  534.             art3dPressureMax1;
  535.  
  536.             optionMenuGrp -l "Pressure Map 2"  -cal 1 "right"
  537.                 art3dPressureMap2;
  538.                 art3dPressureMappings();
  539.  
  540.             floatSliderGrp -field true -label "Pressure Min 2" 
  541.                 -precision 4
  542.                 -min 0.0 -max 1.0
  543.                 -fmn -10000.0 -fmx 10000.0
  544.                 -v 0.0
  545.             art3dPressureMin2;
  546.  
  547.             floatSliderGrp -field true -label "Pressure Max 2" 
  548.                 -precision 4
  549.                 -min 0.0 -max 1.0
  550.                 -fmn -10000.0 -fmx 10000.0
  551.                 -v 1.0
  552.             art3dPressureMax2;
  553.  
  554.             optionMenuGrp -l "Pressure Map 3"  -cal 1 "right"
  555.                 art3dPressureMap3;
  556.                 art3dPressureMappings();
  557.     
  558.             floatSliderGrp -field true -label "Pressure Min 3" 
  559.                 -precision 4
  560.                 -min 0.0 -max 1.0
  561.                 -fmn -10000.0 -fmx 10000.0
  562.                 -v 0.0
  563.             art3dPressureMin3;
  564.     
  565.             floatSliderGrp -field true -label "Pressure Max 3" 
  566.                 -precision 4
  567.                 -min 0.0 -max 1.0
  568.                 -fmn -10000.0 -fmx 10000.0
  569.                 -v 1.0
  570.             art3dPressureMax3;
  571.         setParent ..;
  572.         separator -h 5 -style "none";
  573.     setParent ..;
  574.  
  575.     setUITemplate -popTemplate;
  576. }
  577.  
  578.  
  579. proc art3dCreateDisplayFrame( 
  580.     string     $parent 
  581. )
  582. //
  583. //    Description:
  584. //        Create a 3d paint display opitons.
  585. //
  586. {
  587.     setUITemplate -pushTemplate OptionsTemplate;
  588.     setParent $parent;
  589.  
  590.     columnLayout;
  591.         checkBoxGrp 
  592.             -l ""
  593.             -l1 "Draw Outline" 
  594.             -ann "Draw brush outline."
  595.         art3dDrawOutlineChkBox;
  596.  
  597.         checkBoxGrp -ncb 1 
  598.             -l ""
  599.             -l1 "Draw Outline while Painting" 
  600.             -ann "Turn on/off brush feedback while painting."
  601.         art3dBrushWhilePaintingChkBox;
  602.  
  603.         checkBoxGrp -ncb 1 
  604.             -l ""
  605.             -l1 "Draw Brush Feedback" 
  606.             -ann "Draw additional brush feedback."
  607.         art3dBrushFeedbackChkBox;
  608.  
  609.         checkBoxGrp 
  610.             -l ""
  611.             -l1 "Show Wireframe" 
  612.             -ann "Draw wireframe in shaded mode."
  613.         art3dShowActiveLinesChkBox;
  614.     setParent ..;
  615.  
  616.     setUITemplate -popTemplate;
  617. }
  618.  
  619.  
  620.  
  621. // =======================================================
  622. // Main Procedure.
  623. // =======================================================
  624. global proc art3dPaintProperties()
  625. {
  626.     source "art3dPaintCallback.mel";
  627.     source "art3dPaintValues.mel";
  628.  
  629.     setUITemplate -pushTemplate DefaultTemplate;
  630.  
  631.     string $parent = `toolPropertyWindow -q -location`;
  632.     setParent $parent;
  633.  
  634.     columnLayout -adj true art3dPaint;
  635.         
  636.     // Brush options.
  637.     frameLayout    -label " Brush " 
  638.         -collapsable true -collapse false 
  639.         art3dBrushFrame;
  640.  
  641.         // Create brush option menu.
  642.         art3dCreateBrushFrame("art3dBrushFrame");
  643.     setParent ..;
  644.  
  645.     // Color options.
  646.     frameLayout -l " Color "  
  647.         -collapsable true -collapse false 
  648.         art3dColorFrame;
  649.  
  650.         // Create the color options.
  651.         art3dCreateColorFrame( "art3dColorFrame" );
  652.     setParent ..;
  653.  
  654.     // Flood options.
  655.     frameLayout -l " Flood "  
  656.         -collapsable true -collapse false 
  657.         art3dFloodFrame;
  658.  
  659.         // Create the Flood options.
  660.         art3dCreateFloodFrame( "art3dFloodFrame" );
  661.     setParent ..;
  662.  
  663.     // 3d Paint operations options.
  664.     frameLayout -l " Paint Operations "  
  665.         -collapsable true -collapse false 
  666.         art3dOperationFrame;
  667.  
  668.         // Create paint operation options.
  669.         art3dCreateOperationFrame( "art3dOperationFrame" );
  670.     setParent ..;
  671.     
  672.     // File Texture options.
  673.     frameLayout -l " File Textures "  
  674.         -collapsable true -collapse false 
  675.         art3dFileTextureFrame;
  676.  
  677.         // Create file texture options.
  678.         art3dCreateFileTextureFrame( "art3dFileTextureFrame" );
  679.     setParent ..;
  680.     
  681.     // Stroke options.
  682.     frameLayout -l " Stroke "  
  683.         -collapsable true -collapse true
  684.         art3dStrokeFrame;
  685.  
  686.         // Create stroke options.
  687.         art3dCreateStrokeFrame( "art3dStrokeFrame" );
  688.     setParent ..;
  689.     
  690.     // Stylus Pressure options.
  691.     frameLayout -l " Stylus Pressure "  
  692.         -collapsable true -collapse true
  693.         art3dPressureFrame;
  694.  
  695.         // Create stroke options.
  696.         art3dCreatePressureFrame( "art3dPressureFrame" );
  697.     setParent ..;
  698.     
  699.     // Display options.
  700.     frameLayout -l " Display "  
  701.         -collapsable true -collapse true
  702.         art3dDisplayFrame;
  703.  
  704.         // Create stroke options.
  705.         art3dCreateDisplayFrame( "art3dDisplayFrame" );
  706.     setParent ..;
  707.  
  708.     setParent ..;        // columnLayout art3dPaint;
  709.  
  710.     setUITemplate -popTemplate;
  711.  
  712.     // Define the callbacks.
  713.     art3dPaintCallback( "art3dPaintCtx" );
  714. }
  715.